package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.User;
import cn.wolfcode.trip.base.query.FriendNewsQueryObject;
import cn.wolfcode.trip.base.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;
import java.util.List;
import java.util.Map;



public interface IUserService {
    void userRegister(User user);

    User login(User user);

    User checkEmail(String email);

    PageInfo getPageInfo(QueryObject qo);

    void userUpdate(User user);

    User get(Long userId);

    int getTravelNums(Long userId);

    /**
     * app 获取当前用户的朋友
     * @param id
     * @return
     */
    List queryFriends(Long id);

    /**
     * app 获取多个用户
     * @param ids
     * @return
     */
    List queryManyUsers(Long[] ids);

    /**
     * app获取当前用户的朋友圈
     * @param id
     * @param qo
     * @return
     */
    PageInfo queryFriendNews(Long id, FriendNewsQueryObject qo,Long currentUserId);

    //获取到所有好友
    List<Map> listAllFridends(Long id);
    //查询用户是否存在
    User  selectOneByNickName(String name);
}
